export default function(props:any){
    const name=props.className;
    let className='w-svg';
    if(name){
        className+=' '+name;
    }
    let fn=props.onClick;
    let fnClick;
    if(fn){
        fnClick=(e:any)=>{
            fn(e);
        };
    }
    return (
        <span onClick={fnClick} className={className} style={{fontSize:props.fontSize,color:props.color}}>
            <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor">
                <path d="M512 745.372 761.66 896 695.618 611.868 916 420.818 625.466 395.868 512 128 398.514 395.868 108 420.818 328.384 611.868 262.322 896Z"></path>
            </svg>
        </span>
    )
}